import {Promise} from 'es6-promise';
import {Collection} from "mongodb";

import * as utils from "../core/utils";
import {BaseModel} from "../core/base.model";
import {CursorType} from "../core/defines";
import {MongoColls} from '../config/mongo';
import {
    UpdateParam,
    FindOneParam,
    InsertParam,
    AggregateParam, FindParam
} from "../core/params";

export default class AppHomeModel extends BaseModel {
    constructor(coll: Collection) {
        super(coll);
    }

    getHome(): Promise<any>{
        return this.findOne(new FindOneParam({}))
    }

    name() { return 'AppHomeModel'; }
}
